export default [
  {
    path: "/",
    redirect: "/begin",
  },
  {
    path: "/begin",
    name: "Begin",
    meta: { title: "开始页" },
    component: () => import("@/views/Begin"),
  },
  {
    path: "/index",
    name: "Index",
    meta: { title: "首页" },
    component: () => import("@/views/Index"),
  },
  {
    path: "/agreement",
    name: "Agreement",
    meta: { title: "用户协议" },
    component: () => import("@/views/Agreement"),
  },
  {
    path: "/pricy",
    name: "Pricy",
    meta: { title: "隐私协议" },
    component: () => import("@/views/Pricy"),
  },
  {
    path: "/pay",
    name: "Pay",
    meta: { title: "会员充值" },
    component: () => import("@/views/Pay"),
  },
  {
    path: "/translate",
    name: "translate",
    meta: { title: "文献翻译" },
    component: () => import("@/views/translate"),
  },
  {
    path: "/write",
    name: "Write",
    meta: { title: "萤星写作" },
    component: () => import("@/views/Write"),
  },
  {
    path: "/paper",
    name: "Paper",
    meta: { title: "毕业论文" },
    component: () => import("@/views/Paper"),
  },
  {
    path: "/summery",
    name: "summery",
    meta: { title: "全文总结" },
    component: () => import("@/views/summery"),
  },
  {
    path: "/proof",
    name: "Proof",
    meta: { title: "学术审稿" },
    component: () => import("@/views/Proof"),
  },
  {
    path: "/polish",
    name: "Polish",
    meta: { title: "论文润色" },
    component: () => import("@/views/Polish"),
  },
  {
    path: "/ppt",
    name: "PPT",
    meta: { title: "PPT" },
    component: () => import("@/views/PPT"),
  },
  {
    path: "/chat",
    name: "Chat",
    meta: { title: "萤星对话" },
    component: () => import("@/views/Chat"),
  },
  {
    path: "/draw",
    name: "Draw",
    meta: { title: "萤星绘画" },
    component: () => import("@/views/Draw"),
  },
  {
    path: "/report",
    name: "Report",
    meta: { title: "开题报告" },
    component: () => import("@/views/report"),
  },
  {
    path: "/home",
    component: () => import("@/layout"),
    children: [
      {
        path: "",
        name: "Home",
        meta: { title: "首页" },
        component: () => import("@/views/Home"),
      },
    ],
  },
  {
    path: "/user",
    component: () => import("@/layout"),
    children: [
      {
        path: "/",
        name: "User",
        meta: { title: "用户" },
        component: () => import("@/views/User"),
      },
    ],
  },
  {
    path: "/403",
    name: "403",
    meta: { title: "无权访问", menu: "403" },
    component: () => import("@/views/Basic/Error.vue"),
  },
  {
    path: "/404",
    name: "404",
    meta: { title: "页面不存在", menu: "404" },
    component: () => import("@/views/Basic/Error.vue"),
  },
  {
    path: "/error",
    name: "error",
    meta: { title: "参数错误", menu: "error" },
    component: () => import("@/views/Basic/Error.vue"),
  },
  {
    path: "*",
    redirect: "/404",
  },
];
